package com.project.petLossSystem.service;

import com.project.petLossSystem.util.PageQueryUtil;
import com.project.petLossSystem.util.PageResult;
import com.project.petLossSystem.vo.UserVO;

import javax.servlet.http.HttpSession;

public interface UserService {
    String register(String loginId, String loginPasswordMd5);

    String login(String loginId, String loginPasswordMd5, HttpSession session);

    PageResult getUsersPage(PageQueryUtil pageQueryUtil);

    boolean updateLock(Long[] userIds, Byte isLocked);

    boolean updateDeleted(Long[] userIds, Byte isDeleted);

    // 查询用户联系方式（显示头像、昵称等）
    UserVO getUserMessage(Long userId);

    // 更新昵称和联系手机号
    boolean updateNameAndIntroduction(String userName, String userIntroduction, HttpSession session);

    // 更新密码
    String updatePassword(String oldPassword, String newPassword, HttpSession session);

    // 今日新用户
    long getUserCountToday();

    // 更新头像
    boolean updateImg(String imgUrl, Long userId, HttpSession session);
}
